﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DecoratorPattern.GeneralDemo
{
    public class ConcreteDecoratorTwo : Decorator
    {
        public ConcreteDecoratorTwo(Component _component) : base(_component)
        {
        }

        private string method()
        {
            return "method2 修飾" + Environment.NewLine;
        }

        public override string operate()
        {
            return base.operate() + this.method();
        }
    }
}
